<template>
  <div>
    <div class="second_nav">
      <ul>
        <li @click="nav1(1)" @mouseover="onMouseOver1(1)" @mouseout="onMouseout1(1)">
          <!-- <router-link :to="base"> -->
          <img v-if="choose==1" src="../assets/image//patten_blue.png" alt />
          <img v-else src="../assets/image/patten.png" alt />

          <p class="white" :class="{p_color:choose==1}">藏品欣赏</p>
          <!-- </router-link> -->
        </li>
        <li @click="nav2(2)" @mouseover="onMouseOver1(2)" @mouseout="onMouseout1(2)">
          <!-- <router-link :to="linzhan"> -->
          <img v-if="choose==2" src="../assets/image//patten_blue.png" alt />
          <img v-else src="../assets/image/patten.png" alt />
          <p class="white" :class="{p_color:choose==2}">藏品检索</p>
          <!-- </router-link> -->
        </li>
      </ul>
    </div>
    <div></div>
  </div>
</template>
<script>
export default {
  name: "show",
  data() {
    return {
      choose: 4,
      seen: false,
    };
  },

  methods: {
    nav1(i) {
      (this.choose = i),
        (this.seen = false),
        this.$emit("childByvalue6", this.seen),
        this.$router.push(`/cangpinxinshang`).catch((err) => {
          err;
        });
    },
    nav2(i) {
      (this.choose = i),
        (this.seen = false),
        this.$emit("childByvalue6", this.seen),
        this.$router
          .push(`/cangpinjiansuo/cangpinjiansuo2/:id`)
          .catch((err) => {
            err;
          });
    },
    onMouseOver1(i) {
      this.choose = i;
    },
    onMouseout1(i) {
      this.choose = "";
    },
  },
  components: {},
  mounted() {},
};
</script>
<style scoped>
.second_nav {
  width: 100%;
  height: 50px;
  background: rgb(78, 104, 161);
  border-top: 5px solid rgb(0, 54, 103);
  box-sizing: border-box;
  padding: 0px 584px 0px;
  position: absolute;
  top: 100px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 10000;
}
.second_nav ul {
  display: flex;
  /* width: 100%; */
  height: 30px;
  justify-content: center;
  position: absolute;
  top: 0px;
  left: 680px;
  right: 0px;
  bottom: 0px;
  margin: auto;
}
.second_nav ul li {
  margin: 0 15px 0px;
}
.second_nav ul li p {
  font-size: 16px;
}
.second_nav ul li img {
  margin-right: 15px;
}
.white {
  /* font-size:24px; */
  font-size: 14px;
  color: white;
}
.second_nav ul li a {
  color: white;
  margin-right: 60px;
  width: 150px;
  font-size: 18px;
  color: white;
  display: flex;
}
.second_nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}
li {
  list-style: none;
  text-align: center;
  cursor: pointer;
}
ul,
p {
  margin: 0px;
  padding: 0px;
}
.p_color {
  color: rgb(0, 54, 103);
}

a {
  text-decoration: none;
}
</style>